﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UPMS.Core.Domain
{
    public class Department : DomainBase
    {
        [Required,Display(Name="Organization")]
        public virtual Guid? OrganizationId { get; set; }
        public virtual Organization Orgaization { get; set; }
        
        [Required,Display(Name="Department")]
        public virtual string Name { get; set; }

        [Display(Name = "Parent Department")]
        public virtual Guid? ParentDepartmentId { get; set; }

        [Display(Name = "Parent Department")]
        public virtual Department ParentDepartment { get; set; }
        public virtual IList<Department> SubDepartments { get; set; }
    }
}
